2. Configuring WhatsApp for a Lease Company
To configure WhatsApp for a lease company in ViSN, follow the steps below:
1. Set Up a WhatsApp Business Account
Create a new WhatsApp Business Account for the lease company. This will provide the required credentials:
- Phone number
- Phone number ID
- API token
2. Update the WhatsApp Configuration Secret in GitHub
To securely store the new phone number and token, follow these steps:
- 
Update the existing WhatsApp configuration JSON file with the new phone number and its API token: {
 "XXXX583223XX": "<API TOKEN>",
 "XXXX583273XX": "<API TOKEN>"
 }
- 
Convert the JSON file to Base64 format. 
- 
Update the corresponding secret in GitHub. 
3. Deploy Queue Services
Ensure that the queue-services are deployed to process WhatsApp messages efficiently.
4. Update Firestore with WhatsApp Configuration
In Firestore, add a leaseWhatsappDetails object to the lease company document (/leasecompany/<leaseId>/) with the necessary details:
"leaseWhatsappDetails": {
  "phoneNumber": "XXXX583223XX",
  "phoneNumberId": "XXXX7098545XXXX"
}
Status: Draft (Pending Review)
Category: Protected
Authored By: Sohan on March 04, 2025